package main

import "fmt"

type Student struct {
	id   int
	name string
	sex  byte
}

func main() {
	// 顺序初始化，全部初始化
	var s Student = Student{1,"tang", 'm'}
	fmt.Println(s)

	// 部分初始化
	s2 := Student{name:"Mr tang", sex:'m'}
	fmt.Println(s2)

}
